home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19960209-19960425 / 000391_news@columbia.edu _Wed Apr 10 22:19:32 1996.msg < prev    next >
Internet Message Format  |  1996-05-13  |  3KB

  1. Return-Path: news@columbia.edu
  2. Received: from apakabar.cc.columbia.edu (apakabar.cc.columbia.edu [128.59.35.159]) by watsun.cc.columbia.edu (8.7.5/8.7.3) with ESMTP id WAA23505 for <kermit.misc@watsun>; Wed, 10 Apr 1996 22:19:31 -0400 (EDT)
  3. Received: (from news@localhost) by apakabar.cc.columbia.edu (8.7.5/8.7.3) id WAA09936 for kermit.misc@watsun; Wed, 10 Apr 1996 22:19:28 -0400 (EDT)
  4. Path: news.columbia.edu!sol.ctr.columbia.edu!spool.mu.edu!howland.reston.ans.net!gatech!newsfeed.internetmci.com!in1.uu.net!nntp.inet.fi!news.funet.fi!news.joensuu.fi!news
  5. From: hounsell@cc.joensuu.fi (Paul Hounsell)
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: Scripting question: How to capture the whole string from "input" query?
  8. Date: 10 Apr 1996 11:14:14 GMT
  9. Organization: Joensuu University language Center
  10. Lines: 46
  11. Message-ID: <4kg566$82r@cc.joensuu.fi>
  12. NNTP-Posting-Host: kike6.joensuu.fi
  13. Mime-Version: 1.0
  14. Content-Type: Text/Plain; charset=US-ASCII
  15. X-Newsreader: WinVN 0.99.7
  16.  
  17.  
  18.     Hi all
  19.  
  20.     I am trying to automate a procedure of connecting to one of 
  21. our old printers which is on a serial port of a terminal server. Let give
  22. you give a quick idea of the process. When the user wants to connect to
  23. the printer say PRINTER1, they:
  24.  
  25.     1: Start Kermit
  26.     2: Press "c" and a couple of ENTERs to connect to the 
  27.         terminal server.
  28.     3: type "connect PRINTER1"
  29.  
  30.     If they are the only person using the printer then they 
  31. are connected. However there are a couple of other possiblities.
  32.  
  33.     1. they are already connect to the printer
  34.     2. they are connect to another computer.
  35.     2a. they are connected to another computer at the wrong speed
  36.     3. somebody else is connected to the printer
  37.     4. the cable or server is not working.
  38.  
  39.     Most of the things I have work out but I can not figure out
  40. how to capture the whole line containing "PRINTER1". I need to do this
  41. for problem 1 in particular. But I can use the same solution for the 
  42. other problems. What I do is issue the command "show sessions" and
  43. this command will show all sessions the user is connected to plus the
  44. session number. I can find out if the user is connected to the printer
  45. with the "input" command and if I could pass that line to the substring 
  46. function then I could directly connect the printer instead of trying all 
  47. sessions until the server says "connected to PRINTER1".
  48.  
  49.     Oh yes is there anyway to suppress all this output from the screen.
  50. Many of my users are very computer phobic and I would like not to bother 
  51. them with unnecessary information.
  52.  
  53.     TIA
  54.     Paul
  55. -- 
  56. =======================================================================
  57.  Paul Hounsell                      |disclaimer: 
  58.  Joensuu University Language Center |   Of course I have opinions, I am 
  59.  Joensuu Finland                    |   just not responsible for them
  60.  hounsell@cc.joensuu.fi             |   and neither is anybody else!
  61. =======================================================================
  62.